package com.hushan.elevator.dao;

import com.hushan.elevator.model.DeviceMntPerson;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

@Repository
public interface DeviceMntPersonRepository extends JpaRepository<DeviceMntPerson, Integer> {

    // 根据创建时间范围查询维保人员关联信息
    List<DeviceMntPerson> findByCreatedTimeBetween(LocalDateTime start, LocalDateTime end);

    // 根据更新时间范围查询维保人员关联信息
    List<DeviceMntPerson> findByUpdatedTimeBetween(LocalDateTime start, LocalDateTime end);
}